<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

<div class="swiper-container banner_main">
    <div class="swiper-wrapper">
        <?php if (!$this->agent->is_mobile()) { ?>
            <?php if ($banner['pc']) : ?>
                <?php foreach ($banner['pc'] as $key => $val) : ?>
                    <div class="swiper-slide"><img src="<?php echo $val['pic_url']; ?>"></div>
                <?php endforeach; ?>
            <?php endif; ?>

        <?php } else { ?>

            <?php if ($banner['mobile']) : ?>
                <?php foreach ($banner['mobile'] as $key => $val) : ?>
                    <div class="swiper-slide"><img src="<?php echo $val['pic_url']; ?>"></div>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php } ?>
    </div>
    <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>
</div>
<div id="wrap">
    <img src="<?php echo image_url('p_banner.jpg'); ?>">
</div>
<div class="phone_last">
    <ul>
        <li>
            <a href="about.html">
                <i class="pico ico_a"></i>
                <p>梦绣品牌</p>
            </a>
        </li>
        <li>
            <a href="product.html">
                <i class="pico ico_b"></i>
                <p>墙布系列</p>
            </a>
        </li>
        <li>
            <a href="news.html">
                <i class="pico ico_c"></i>
                <p>新闻中心</p>
            </a>
        </li>
        <li>
            <a href="join.html">
                <i class="pico ico_e"></i>
                <p>加盟梦绣</p>
            </a>
        </li>
        <li>
            <a href="contact.html">
                <i class="pico ico_d"></i>
                <p>梦绣服务</p>
            </a>
        </li>
        <li>
            <a href="jobs.html">
                <i class="pico ico_f"></i>
                <p>加入梦绣</p>
            </a>
        </li>
    </ul>
</div>
<div class="hot_product">
    <div class="title">
        <em>梦绣精品系列</em>
        <p>Gifts Series</p>
    </div>
    <div class="box">
        <div class="list">
            <ul>
                <?php if ($hot) : ?>
                    <?php foreach ($hot as $key => $val) : ?>
                        <li class="swiper-slide">
                            <a href="/product_show/<?php echo $val['id'];?>.html">
                                <img src="<?php echo $val['img']; ?>">
                                <span>
                                <em><?php echo $val['title']; ?></em>
                            </span>
                            </a>
                        </li>
                    <?php endforeach; ?>
                <?php endif; ?>

                <div class="clear"></div>
            </ul>
        </div>
    </div>
    <div class="more_bar">
        <a href="/product.html">查看全部</a>
    </div>
</div>
<div class="about_bar">
    <div class="box">
        <div class="name">关于梦绣</div>
        <div class="show">
            <p>秉承了江南水乡特色及浓厚的文化底蕴，绍兴梦绣装饰材料有限公司在此应运而生。公司成立至今，专注于墙布的设计、研发、生产和销售。旗下拥有 "洛士奇"、"缇素"、"梦绣天下"、"雅诗顿"等墙布品牌。</p>
        </div>
        <div class="more">
            <a href="/about.html">了解梦绣</a>
        </div>
    </div>
</div>
<div class="news_box">
    <div class="title">
        <em>品牌快讯</em>
        <p>News</p>
    </div>
    <div class="list">
        <ul>
            <!--6个-->
            <?php if ($news) : ?>
                <?php foreach ($news as $key => $val) : ?>
                    <li>
                        <h1><a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>"><img src="<?php echo $val['img'] ?? ""; ?>"></a></h1>
                        <h2>
                            <em><?php echo $val['create_time']; ?></em>
                            <a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>" target="_blank"><?php echo $val['title']; ?></a>
                            <span><?php echo $val['describe'] ?? ""; ?></span>
                        </h2>
                    </li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
    </div>
</div>
<?php $this->load->view('common/footer'); ?>
